package com.saturn.titan.core.bean;

import java.util.List;

public class DatatableBean<T> {
	
	public static <T> DatatableBean<T> getInstance(Class<T> clazz){
		return new DatatableBean<T>();
	}
	
	private DatatableBean(){
		
	}

	private List<T> aaData;
	
	private Long iTotalDisplayRecords;
	
	/**用于保存档次请求，用来当点导出时，传入相同的对象进行查询*/
	private String exportRequestJson;
	
	/**保存一些自定义的统计信息*/
	private Object otherTotalInfo;

	public List<T> getAaData() {
		return aaData;
	}
	
	public Object getOtherTotalInfo() {
		return otherTotalInfo;
	}

	public void setOtherTotalInfo(Object otherTotalInfo) {
		this.otherTotalInfo = otherTotalInfo;
	}

	public String getExportRequestJson() {
		return exportRequestJson;
	}

	public void setExportRequestJson(String exportRequestJson) {
		this.exportRequestJson = exportRequestJson;
	}

	public void setAaData(List<T> aaData) {
		this.aaData = aaData;
	}

	public void setOtherTotalInfo(String otherTotalInfo) {
		this.otherTotalInfo = otherTotalInfo;
	}

	public Long getiTotalDisplayRecords() {
		return iTotalDisplayRecords;
	}

	public void setiTotalDisplayRecords(Long iTotalDisplayRecords) {
		this.iTotalDisplayRecords = iTotalDisplayRecords;
	}
}
